javascript:
console.clear();
getAccessToken();
var token;
function getAccessToken() {

    var AK = "UZsbXHXulSefKpKvXQxPOAWE";
    var SK = "fjoFIyPSkP0rF0BHYIU7o0xujowVDHMz";
    var url = 'https://1308075483-bxssa5u2vw.ap-beijing.tencentscf.com?url='+encodeURIComponent('https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=' + AK + '&client_secret=' + SK);
    $.ajax({
        type: "POST",
        url: url,
        data: 'cookie=' + 'cookie:asfsdrer',
        error: function(data) {
            console.log(JSON.stringify(data));
        },
        success: function(data) {
            token = data.access_token;
            console.log('获取到token:', token);
            if (token) {
                aianswer(token);
            } else {
                console.log('获取token失败了！');
            }
        }
    });
}
function rd(min,max){return Math.floor(Math.random()*(max-min)+min);}
if(window.ti==undefined){window.ti = 0}
var title = '';
var pasuse = 0
function aianswer(token) {
    console.log(ti);	
    btn_click = 0;
    var type = $('.type.f16.bold').text() && $('.type.f16.bold').text().match(/【(.*?)】/) && $('.type.f16.bold').text().match(/【(.*?)】/) [0];
    var question = type+$('.name.f14').text();
    if(title!=question){
        title = question;
        pasuse = 0;
    }else{
        pasuse++;
    }
    if(pasuse==2){return;}
    var options = $('.el-radio-group').text() || $('.el-checkbox-group').text();
    console.log("问题："+(ti+1), question);
    console.log("选项：", options);
    var url = 'https://1308075483-bxssa5u2vw.ap-beijing.tencentscf.com?url='+encodeURIComponent('https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/ernie-4.0-turbo-8k?access_token=' + token);
    url = 'https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/ernie-4.0-turbo-8k?access_token=' + token;
    url = 'https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/ernie-3.5-128k?access_token=' + token;	
    $.ajax({
        timeout: 30000,
        type: "POST",
        'url': url,
        'headers': {
            'Content-Type': 'application/json'
        },
        data: JSON.stringify({
            "messages": [{
                "role": "user",
                "content": "你是一个答题助手，根据题目：{" + question + "}，从选项：{" + options + "}选择出正确的答案的选项，不需要解析",
                "key": "3"
            }],
            "temperature": 0.8,
            "top_p": 0,
            "penalty_score": 1,
            "disable_search": false,
            "enable_citation": false,
            "collapsed": true,
            "system": "你是一个答题助手，根据题目和选项，从选项返回正确答案的选项，不需要解析"
        }),
        error: function(data) {
            console.log(JSON.stringify(data));
            console.log('AI请求答案失败了！');
        },
        success: function(data) {

            ti++;
            if (data.result && data.result) {
                var text = data.result;				
                console.log("答案：", text);
                select(text);				
            } else {
                console.log(JSON.stringify(data));
                console.log(data.result);
                console.log('AI好像也不知道这道题的答案');
            }
        }
    });
}
function  next() {

    var list = $('.el-button');
    for(var i=0;i<list.length;i++){
        var text = list[i] && $(list[i]).text();
        if(text && text.match(/下一题/)){
            console.log(text);
            $(list[i]).click();
        }        
    }
    setTimeout(()=>aianswer(token),rd(250,300));
}
async function select(options) {
    var list = $('.item');
    var select = 0;
    for(var i = 0;i<list.length;i++){
        var text = list[i] && $(list[i]).text();
        var option = text.match(/[A-Z]/i) && text.match(/[A-Z]/i)[0];
        if(text.match(RegExp(options,'i')) || option && options.match(RegExp(option,'i'))){
            console.log(text);
            $('.el-radio__inner')[i] && $('.el-radio__inner')[i].click();
            $('.el-checkbox__label')[i] && $('.el-checkbox__label')[i].click();
            select = 1;
            await delay(rd(100,150));
        }
    }
    if(select===1)setTimeout(()=>next(),rd(250,500));
}
function delay(time) {
    return new Promise(resolve => setTimeout(resolve, time));
}